fix(voice): composed agent 复述日程时间不再带时区偏移 - #411
Merged
znnnnnnn-wil merged 2 commits intoAug 28, 2026
Merged
Conversation
组合式 agent 序列化日程给 LLM 时只有 start_time 的 ISO 字符串,偏移随 PostgreSQL 服务器时区漂移;服务器容器默认 UTC 时,LLM 口播直接读钟面数字,把「下午六点」说成「上午十点」,固定差 8 小时。对齐 realtime 的 _for_model,新增 starts_at_local 字段,用日程自身 IANA 时区渲染本地墙上时间。
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 12 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
审阅了固定提交范围 718477427b7f494762b6f4ee9887d6ffdbdb1b82...d5a307c3ce9c5defd24b448cd18d19ff3964c148,包括组合式 schedule 工具序列化及其测试。新增的 starts_at_local 使用日程自身的 IANA 时区转换存储瞬时值,与 realtime 侧现有契约一致;未发现由本 PR 引入的、达到报告阈值的正确性或回归问题。
验证:目标文件通过 Python 编译检查和 git diff --check。无法运行 pytest/ruff,因为当前环境未安装这些命令。
znnnnnnn-wil
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #410
改动
组合式 agent 序列化日程给 LLM 时只有
start_time的 ISO 字符串,偏移随 PostgreSQL 服务器时区漂移。服务器容器默认 UTC 时,LLM 口播直接读钟面数字,把「下午六点」说成「上午十点」,固定差 8 小时。对齐 realtime 的
_for_model:_schedule_for_llm新增starts_at_local字段,用日程自身 IANA 时区(ZoneInfo(snapshot.timezone))把存储时刻渲染成本地墙上时间。验证
pytest1248 passed、49 skipped,覆盖率 97.24%(门禁 ≥95%)ruff check、ruff format --check、mypy strict全绿test_serialized_snapshot_renders_local_wall_clock_for_the_model:UTC07:00+00:00在Asia/Shanghai下渲染为15:00